package com.admin.education.dataTransferObject.designations.mapper;

import com.admin.education.dataTransferObject.designations.DesignationsTransfer;
import com.admin.education.dataTransferObject.designations.request.CreateDesignationsRequest;
import com.admin.education.dataTransferObject.designations.request.UpdateDesignationsRequest;
import com.admin.education.models.Designations;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
import org.mapstruct.Mappings;

import java.util.List;

@Mapper
public abstract class DesignationsMapper {
    @Mappings({})
    public abstract DesignationsTransfer mapFrom(Designations designations);
    @Mappings({})
    public abstract List<DesignationsTransfer> mapFrom(List<Designations> designations);
    @Mappings({})
    public abstract Designations mapFrom(CreateDesignationsRequest createDesignationsRequest);
    @Mappings({})
    public abstract Designations mapFrom(UpdateDesignationsRequest updateDesignationsRequest, @MappingTarget Designations designations);
}
